import {Component, Input, OnInit} from '@angular/core';
import {DomSanitizer} from '@angular/platform-browser';
@Component({
    selector: 'app-title',
    templateUrl: './title.component.html',
    styleUrls: ['./title.component.scss']
})
export class TitleComponent implements OnInit {

    @Input() tagData: any;

    title: any;

    constructor(
        private sanitizer: DomSanitizer
    ) {
    }

    ngOnInit() {
        this.title = this.sanitizer.bypassSecurityTrustHtml(this.tagData.columnTitle);
    }

}